<body onload="emailcd.cd(5)">
<b id="rsbutton"></b>
<input name="" type="button" value="查看" onclick="show()"/>
<script language="javascript">



	var emailcd = {
		"time":"60",
		"cd":function(t){
			this.time = t;
			var tobj = document.getElementById("rsbutton");
			if(t > 0){
				tobj.innerHTML = "("+t.toString()+"秒后)点此重新发送";
				t--;
				setTimeout('emailcd.cd('+t+')', 1000);
			}else{
				tobj.innerHTML = "点此重新发送";
				tobj.style.color = '707070';
				alert("到了");	
			}	
		}
	};
	
	
	var show = function(){
		alert(emailcd.time);	
	};







</script>
</body>